﻿using System.Windows;
using HomeService.Models;

namespace HomeService.Views
{
    public partial class EditPhotoView
    {
        public EditPhotoView()
        {
            InitializeComponent();
        }

        private void RemovePhoto(object sender, RoutedEventArgs e)
        {
            var photo = DataContext as ServiceRequestPhoto;
            if (photo == null) return;
            photo.ServiceRequest.RemovePhoto(photo);
        }
    }
}